package edu.whut.mall.admin.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @program: d9lab-mall
 * @description: 用户表单
 * @author: Wayne
 * @create: 2020-04-17 17:40
 **/
@Data
public class AdminDto {


    @NotBlank(message="用戶姓名不能為空")
    private String username;

    @NotBlank(message="密碼不能為空")
    private String password;

    @NotBlank(message="电话不能為空")
    private String mobile;

    @NotNull
    private String gender;

    @NotNull
    private Integer roleId;

    private String remark;

    private Integer status;
}
